import request from "@/utils/request";

export default {
  add(data) {
    return request({
      url: `/specialCare`,
      method: "post",
      data,
    });
  },
  delete(id) {
    return request({
      url: `/specialCare/${id}`,
      method: "delete",
    });
  },
  update(data) {
    return request({
      url: `/specialCare`,
      method: "put",
      data,
    });
  },
  page(current, size) {
    return request({
      url: `/specialCare/page`,
      method: "get",
      params: {
        current,
        size,
      },
    });
  },
  list() {
    return request({
      url: `/specialCare/list`,
      method: "get",
    });
  },
  getBySubjectId(subjectId) {
    return request({
      url: `/specialCare/getBySubjectId/${subjectId}`,
      method: "get",
    });
  },
};
